<?php



class RingtoneStatisticMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.RingtoneStatisticMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('ringtone_statistic');
		$tMap->setPhpName('RingtoneStatistic');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('RINGTONE_ID', 'RingtoneId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('DOWNLOAD_TODAY', 'DownloadToday', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DOWNLOAD_THIS_WEEK', 'DownloadThisWeek', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DOWNLOAD_THIS_MONTH', 'DownloadThisMonth', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DOWNLOAD_TOTAL', 'DownloadTotal', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DOWNLOAD_YESTERDAY', 'DownloadYesterday', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DOWNLOAD_LAST_WEEK', 'DownloadLastWeek', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DOWNLOAD_LAST_MONTH', 'DownloadLastMonth', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('COMMENT_TODAY', 'CommentToday', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('COMMENT_THIS_WEEK', 'CommentThisWeek', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('COMMENT_THIS_MONTH', 'CommentThisMonth', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('COMMENT_TOTAL', 'CommentTotal', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('SET_TODAY', 'SetToday', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('SET_THIS_WEEK', 'SetThisWeek', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('SET_THIS_MONTH', 'SetThisMonth', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('SET_TOTAL', 'SetTotal', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('SET_YESTERDAY', 'SetYesterday', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('SET_LAST_WEEK', 'SetLastWeek', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('SET_LAST_MONTH', 'SetLastMonth', 'int', CreoleTypes::INTEGER, false, null);

	} 
} 